<template>
  <div class="index" v-title data-title="后羿零碳">
    <a-row style="width: 100%">
      <a-col :span="16" :lg="16" style="padding-right: 5px" class="index_left">
        <DigitalPanel></DigitalPanel>
        <ToDoTask></ToDoTask>
        <EmissionTrend></EmissionTrend>
        <CarbonPriceTrend></CarbonPriceTrend>
      </a-col>

      <a-col :span="8" :lg="8" class="index_right">
        <!-- 常用功能 -->
        <UseFun></UseFun>
        <!-- 碳排放设施名称 -->
        <RankingFacility></RankingFacility>
        <!-- 低碳咨询 -->
        <Message></Message>
      </a-col>
    </a-row>
  </div>
</template>


<script>
import DigitalPanel from "./DigitalPanel.vue";
import ToDoTask from "./ToDoTask.vue";
import EmissionTrend from "./EmissionTrend.vue";
import CarbonPriceTrend from "./CarbonPriceTrend.vue";
import UseFun from "./UseFun.vue";
import RankingFacility from "./RankingFacility.vue";
import Message from "./Message.vue";
export default {
  components: {
    DigitalPanel,
    ToDoTask,
    EmissionTrend,
    CarbonPriceTrend,
    UseFun,
    RankingFacility,
    Message,
  },
  data() {
    return {};
  },

  mounted() {
    // window.addEventListener("resize", () => {
    //   this.drawChart2();
    //   this.drawChart3();
    // });
  },
  methods: {
    handleMenuClick() {},
  },
};
</script>
<style lang="scss" scoped>
.index {
  display: flex;
  flex: row;
  width: 100%;
  .title {
    display: flex;
    font-size: 14px;
    font-weight: 600;
  }
  .panel_box {
    background: #fff;
    padding: 10px;
    border-radius: 5px;
  }
  .index_left {
    .top_panel {
      // padding: 0 5px;
      margin-bottom: 5px;
      .panel {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        .text {
          text-align: left;
          margin-right: 40px;
          .tlt {
            font-size: 14px;
            margin-bottom: 20px;
          }
          .num {
            font-size: 26px;
            font-weight: 600;
            margin: 0;
          }
        }
        .icon {
          img {
            width: 80px;
          }
        }
      }
    }
    
    .emissionTrend {
      margin-bottom: 5px;
    }
    .carbonPrice {
      .carbonPriceTrend {
        margin-bottom: 10px;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
      }
    }
    .echarts_box {
      padding: 10px 5px;
      .echarts {
        border-radius: 5px;
        margin-bottom: 10px;
        padding: 10px;
        background: #fff;
        .tit {
          text-align: left;
          font-size: 16px;
          font-weight: 600;
        }
      }
    }
  }
  .index_right {
    .index_right_bottom {
      margin-bottom: 5px;
      .medal {
        // display: inline-block;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        width: 16px;
        height: 16px;
        border-radius: 50%;
        color: #fff;
        background: #b3b3b3;
        margin-right: 6px;
      }
      .medal1 {
        background: #ebc469;
      }
      .medal2 {
        background: #b8b6a9;
      }
      .medal3 {
        background: #bd8a77;
      }
      .rankingFacilities {
        margin-bottom: 10px;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
      }
    }
    .index_right_message {
      p {
        margin: 6px 0;
        color: #333;
        font-size: 14px;
        text-align: left;
      }
      span {
        display: inline-block;
        font-size: 12px;
        color: #666;
        text-align: left;
      }
    }
  }
}
</style>